import styled from 'styled-components';

export const ProgramRankItemWrapper = styled.div`
  width: 424px;
  height: 40px;
  padding: 10px 0;
  line-height: 40px;
  display: flex;
  align-items: center;
  .index {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    text-align: center;
  }
  .top {
    color: #da4545;
  }
  .program_img {
    display: block;
    position: relative;
    width: 40px;
    height: 40px;
    &:hover {
      > i {
        display: block;
      }
    }
    > i {
      position: absolute;
      display: none;
      width: 22px;
      height: 22px;
      top: 50%;
      left: 50%;
      overflow: hidden;
      margin: -11px 0 0 -11px;
      background-position: 0 -85px;
    }
  }
  .info {
    width: 178px;
    line-height: 20px;
    margin-left: 15px;
    > a:first-child {
      color: #333;
    }
    > a {
      display: block;
      width: 178px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      word-wrap: normal;
    }
  }
  .degree {
    width: 100px;
    height: 8px;
    background-position: 0 -240px;
    margin-left: 10px;
    .bar {
      display: block;
      height: 8px;
      background-position: right -318px;
      padding-right: 4px;
      > i {
        height: 8px;
        width: 100%;
        display: block;
        background-position: 0 -304px;
      }
    }
  }
`;
